Skip to content

Personal/pragyagandhi/changes for az auth reconnect#32

Open
pragyagandhi wants to merge 5 commits intomasterfrom
personal/pragyagandhi/ChangesForAzAuthReconnect
Open

Personal/pragyagandhi/changes for az auth reconnect#32
pragyagandhi wants to merge 5 commits intomasterfrom
personal/pragyagandhi/ChangesForAzAuthReconnect

Conversation

@pragyagandhi
Copy link
Collaborator

No description provided.

assert(nfs->rpc->use_azauth == FALSE);

nfs->rpc->use_azauth = TRUE;
/*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets remove this. Lets set nfs->rpc->use_azauth = TRUE; for azauthNone and AzAuthAAD


const char *server_version = res->AZAUTH3res_u.resok.server_version;
const char *server_id = res->AZAUTH3res_u.resok.serverid;
const uint64_t server_cap_map = res->AZAUTH3res_u.resok.server_cap_map;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the capability changes from this PR.

assert(rpc->tls_context.state == TLS_HANDSHAKE_COMPLETED);

if (rpc->use_azauth) {
uint64_t val = 1;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert it back


#ifdef ENABLE_INSECURE_AUTH_FOR_DEVTEST
if (rpc->use_azauth) {
if (val == 1) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert it back

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of this add condition in rpc_auth_needs_refresh() to check if rpc->auth_context.auth_type == AzAuthNone return false.

{
/*
* AZAUTH RPC is the only one queued with head priority and
* AZAUTH RPC MUST only be sent if use_azauth is true.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert it back

* AZAUTH RPC is the only one queued with head priority and
* AZAUTH RPC MUST only be sent if use_azauth is true.
*/
assert(!pdu->is_head_prio || rpc->use_azauth);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here as well

* AZAUTH RPC MUST only be sent if use_azauth is true.
*/
assert(!pdu->is_head_prio || rpc->use_azauth);
//assert(!pdu->is_head_prio || rpc->use_azauth);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here as well

*/
if (rpc->use_azauth &&
!rpc->auth_context.is_authorized &&
if (!rpc->auth_context.is_authorized &&
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants